<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>吉车惠后台管理系统</title>
	<%@include file="/global/global-other.jsp" %>
<script type="text/javascript">
	var $bn_oilStaion_worker_list = new Object();
	var $bn_oilStaion_worker_list_Datagrid;
	var $bn_oilStaion_worker_list_toolbar = [{
		text:'<i class="fa fa-search " aria-hidden="true"></i>查询',
		handler:function(){
			$bn_oilStaion_worker_list.reload();
		}
	}
	];
	$(function(){
		$bn_oilStaion_worker_list_Datagrid = $('#bn_oilStaionDatagrid').datagrid({
			filterBtnIconCls:'icon-filter',
			queryParams: {
				filter_EQ_app_user_id: $("#appUserId").val(),
				filter_EQ_delete_status: 0
			},
			pageSize : 20,
			remoteFilter:true
		});
		$bn_oilStaion_worker_list_Datagrid.datagrid('enableFilter', [
			{field:'phone',type:'text'},
			{field:'name',type:'text'},
			{field:'licenseNo',type:'text'},
			{field:'rechargeKindName',type:'text'},
			{field:'backMoney',type:'text'},
			{field:'backAt',type:'text'},
			{
				field:'backStatus',
				type:'combobox',
				options:{
					valueField: 'code',
					textField: 'name',
					data: [{
						code: '0',
						name: '未返还'
					},{
						code: '1',
						name: '已返还'
					}
					]
				},
				op:['equal']
			},
			{field:'updateAt',type:'text'}
		]);

	});


	$bn_oilStaion_worker_list.test=function(a){

	}

	$bn_oilStaion_worker_list.reload = function(){
		$("#bn_oilStaionDatagrid").datagrid('reload');
	};

	var viewDialog = null;




</script>
	</head>
<body>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
<table id="bn_oilStaionDatagrid"  style="width:100%;height: 100%"
	   data-options="border:false,rownumbers:true,autoRowHeight:false,singleSelect:true,pagination:true,sortName:'updateAt',sortOrder:'desc',toolbar:$bn_oilStaion_worker_list_toolbar,rowStyler: function(index,row){return {style:'height:30px'};},url:'${ctx}/an/package/search?_m=load',method:'post'">
	<thead>
		<input id="appUserId" name="appUserId" type="hidden" value="${appUserId}">
		<tr>
			<th data-options="field:'phone',width:100,align:'center'">手机号</th>
			<th data-options="field:'name',width:100,align:'center'">用户姓名</th>
			<th data-options="field:'licenseNo',width:140,align:'center'">油卡编号</th>
			<th data-options="field:'rechargeKindName',width:160,align:'center'">充值种类名称</th>
			<th data-options="field:'backMoney',width:120,align:'center'">返还金额</th>
			<th data-options="field:'backAt',width:140,align:'center'">返还时间</th>
			<th data-options="field:'backStatus',width:100,align:'center',formatter:
                    function(value,row,index){
                        if(row.backStatus=='0'){
                            return '未返还';
                        }else if(row.backStatus=='1'){
                            return '已返还';
                            }
						}">返还状态</th>
			<th data-options="field:'updateAt',width:150,align:'center'">修改时间</th>
		</tr>
	</thead>
</table>
</div>
	</div>
</body>
</html>